<?php echo $this->renderElement('admin/menu'); ?>
<br />

<?php echo $html->link("Add User", '/users/add')."<br /><br />"; ?>
<h2><?php echo "Liste des Utilisateurs" ?></h2>
<br />

<table width="100%">
<th>#id</th><th><?php echo "Name"; ?></th><th><?php echo "Login"; ?></th><th><?php echo "Mail"; ?></th><th><?php echo __('company'); ?></th><th><?php echo "Tel Fixe"; ?></th><th><?php echo "Tel Port"; ?></th><th>Actions</th>

<?php
	foreach($users as $user):
		echo "<tr>";
		echo "<td>".$html->link("#".$user['User']['id'], '/users/viewuser/'.$user['User']['id'])."</td>";
		echo "<td>".$html->link($user['User']['lastname'].' '.$user['User']['firstname'], '/users/viewuser/'.$user['User']['id'])."</td>";
		echo "<td>".$user['User']['login']."</td>";
		echo "<td>".$user['User']['mail']."</td>";
		echo "<td>".$user['Company']['name']."</td>";
		echo "<td>".$user['User']['phone']."</td>";
		echo "<td>".$user['User']['mobile']."</td>";
		echo "<td>".$html->link(__('view', true), '/users/viewuser/'.$user['User']['id'])." | ".$html->link(__('edit', true), '/users/edit/'.$user['User']['id'])." | ".$html->link(__('delete', true), '/users/del/'.$user['User']['id'])."</td>";				
		echo "</tr>";
	endforeach;
?>

</table>
